<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<title>企业贷款申请</title>
<span id="navlink">贷款申请 >> 企业贷款申请</span>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/credit/creditApplyEnterprise.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/common/money2chinese.js"></script>
	<div id="msg"></div>
<form action="credit_Enterprise_ApplyInsertAction" method="post" id="form">
	<br />
	<s:hidden name="clientid" id="clientid" value="%{enterpriseInforBean.id}" />
	<s:hidden name="creditstate" value="1" />
	<s:hidden name="applyid" value="%{autoApplyId}"/>
	<s:div id="left_area">
		<span class="need">*</span>申请单号:<span>RFQ</span><s:text name="%{autoApplyId}"/>
	</s:div>
	<div id="top_area">
			<input type="button" id="ajax" value="浏览"/>
			<span class="need">*</span><s:label value="申请日期"/><s:textfield name="applydate" id="applydate" value="%{applydate}" readonly="true"/>
		</div>
	<table class="table_box table_all_border takecenter">
		<tr>
			<td colspan="2">借款申请人（全称）</td>
			<td colspan="4">${enterpriseInforBean.name}</td>
		</tr>
		<tr>
			<td colspan="2">法定代表人</td>
			<td >${enterpriseInforBean.lawPeople}</td>
			<td colspan="2">联系人</td>
			<td >${enterpriseInforBean.linkman}</td>
		</tr>
		<tr>
			<td colspan="2">住所地</td>
			<td >${enterpriseInforBean.mailingaddress}</td>
			<td colspan="2">联系电话</td>
			<td colspan="1">${enterpriseInforBean.telephone}</td>
		</tr>
		<s:iterator value="lcBankList" status="index" var="var">
			<tr>
			<td  style="width:150px">基本账户开户行</td>
			<td style="width:50px">本币</td>
			<td>${bankname }</td>
			<td  style="width:150px">基本账户号码</td>
			<td style="width:50px">本币</td>
			<td>${saveaccount }</td>
		</tr>
		</s:iterator>
		<%--<tr>
			<td colspan="2">一般银行</td>
			<td ></td>
			<td colspan="2">账户号码</td>
			<td ></td>
		</tr>
		--%><tr>
			<td colspan="2">贷款卡号</td>
			<td colspan="4">${enterpriseInforBean.creditcode}</td>
		</tr>
		</table>
		<table class="table_box table_bottom_border takecenter">
		<tr>
			<td style="width:16%">资产总额</td>
			<td><s:if test="enterpriseInforBean==null||enterpriseInforBean.allMoney==null"></s:if><s:else><s:text name="f.money"><s:param value="enterpriseInforBean.allMoney"/></s:text></s:else>(元)</td>
			<td style="width:16%">所有者权益总额</td>
			<td><s:if test="enterpriseInforBean==null||enterpriseInforBean.totalOwnMoney==null"></s:if><s:else><s:text name="f.money"><s:param value="enterpriseInforBean.totalOwnMoney"/></s:text></s:else>(元)</td>
			<td style="width:16%">资产负债率</td>
			<td >${enterpriseInforBean.assetLiabilityRatio}(%)</td>
		</tr>
		<tr>
			<td colspan="2">主要产（商）品</td>
			<td colspan="4">${enterpriseInforBean.mainproducts}</td>
		</tr>
		<tr>
			<td >总产值</td>
			<td><s:if test="enterpriseInforBean==null||enterpriseInforBean.totalValue==null"></s:if><s:else><s:text name="f.money"><s:param value="enterpriseInforBean.totalValue"/></s:text></s:else>(元)</td>
			
			<td>销售收入</td>
			<td><s:if test="enterpriseInforBean==null||enterpriseInforBean.salesRevenue==null"></s:if><s:else><s:text name="f.money"><s:param value="enterpriseInforBean.salesRevenue"/></s:text></s:else>(元)</td>
			<td>利润</td>
			<td><s:if test="enterpriseInforBean==null||enterpriseInforBean.profits==null"></s:if><s:else><s:text name="f.money"><s:param value="enterpriseInforBean.profits"/></s:text></s:else>(元)</td>
		</tr>
	</table>
	<br>
	<table class="table_box table_all_border" id="applytable">
		<tr>
			<th colspan="2">申请贷款情况</th>
		</tr>
		<tr>
			<th style="width:25%"><span class="need">*</span>借款用途</th>
			<td ><s:textfield name="loanuse" id="loanuse"
					value="" size="60" /></td>
		</tr>
		<tr>
			<th><span class="need">*</span>贷款期限</th>
			<td><s:textfield name="applytime"/>
			<s:radio id="applytimetype" name="applytimetype" list="%{#{'年':'年','月':'月','天':'天'}}"/>
			<%-- <s:select name="applytimetype" headerKey="" headerValue="----"
				list="#{'年':'年','月':'月','天':'天' }" cssClass="readonly"/>  --%>
			</td>
			</tr>
		<tr>
			<th><span class="need">*</span>借款币种及金额</th>
			<td >￥<s:textfield name="loanaccount"
					id="loanaccount" value="" size="30" maxlength="12" /> 大写RMB<s:textfield name="loanaccountCapital"
					id="loanaccountCapital" value="" size="55" maxlength="35" readonly="true" /></td>
		</tr>
		<tr>
			<th><span class="need">*</span>贷款方式</th>
			<td><s:checkboxlist id="loanofmode" name="loanofmode" list="loantypeList" listKey="type" listValue="typename"/></td>
			</tr>
		<tr>
			<th><span class="need">*</span>是否涉农</th>
			<td><s:radio id="isAboutN" name="isAboutN" list="%{#{'1':'是','0':'否'}}"/></td>
			</tr>
		<tr>
			<th><span class="need">*</span>还款资金来源</th>
			<td><input name="sourceofrepayment"
				id="sourceofrepayment" value="" size="60" /></td>
		</tr>
		<tr>
			<th><span class="need">*</span>还款方式</th>
			<td>
			<s:radio id="modeofrepayment" name="modeofrepayment" list="%{#{'1':'一次性偿还','2':'分期偿还','5':'等额本金','6':'等额本息 ','7':'其他 '}}"/>
			</td>
		</tr>
	</table>
	<br>

	<table class="table_box table_all_border" id="keepInfor1">
		<tr>
			<th colspan="6">担保情况表</th>
		</tr>
	</table>

	<s:div style="display:none" id="infor1">
		<br>
		<hr>
		<br>
		<table class="table_box table_all_border" id="hypothecate">
			<tr>
				<th>抵押信息</th>
				<th colspan="5"><input type="button" id="addHypothecate"
					value="增加抵押信息" /></th>
			</tr>
		</table>
	</s:div>
	<s:div style="display:none;" id="infor2">
		<br>
		<hr>
		<br>
		<table class="table_box table_all_border" id="pledge">
			<tr>
				<th>质押信息</th>
				<th colspan="5"><input type="button" id="addPledge"
					value="增加质押信息" /></th>
			</tr>
		</table>
	</s:div>
	<s:div style="display:none;" id="infor3">
		<br>
		<hr>
		<br>
		<table class="table_box table_all_border" id="keepInfor">
			<tr>
				<th>保证信息</th>
				<th colspan="5"><input type="button" id="addKeepInfor"
					value="增加保证信息" /></th>
			</tr>
		</table>
	</s:div>
	<br>
	<hr>
	<br>
	<div id="button_area">
		<input type="submit" id="submit" value="提交" />
		<s:reset value="重置"></s:reset>
		<%--<input type="button" value="取消" />

	--%></div>

</form>
